package com.example.demo.aop.action;

import com.example.demo.aop.service.HelloAService;
import com.example.demo.aop.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class HelloController {
    @Autowired
    HelloAService a;
    @Autowired
    HelloService b;

    public  void  hello() {
        a.add();
        a.delete();
        b.add();
        b.delete();
    }
}
